import {
	$api,
	$config
} from './request/index.js'

/**
 * 登录
 * @param {Object} data
 */
export function login(data) {
	return $api({
		url: $config.authURL+ '/oauth/wx/login',
		method: 'POST',
		data: data,
	})
}

/**
 * 自动登录
 * @param {Object} data
 */
export function autoLogin(data) {
	return $api({
		url: $config.authURL+ '/oauth/wx/autoLogin',
		method: 'POST',
		data: data,
	})
}
